import request from "./request";

// 用户登录
export function GetLogin(data) {
  return request({
    method: "POST",
    url: "authorizations",
    data,
  });
}

// 获取用户信息
export function GetUserInfo() {
  return request({
    url: "user/profile"
  });
}

// 提交用户头像
export function UpdateUserAvatar(data) {
  return request({
    method: "PATCH",
    url: "user/photo",
    data
  });
}
